function Userslist(id, parentDivId){
	this.count = 0;
	this.id = id;
	this.usersData = [];
	this.userslist = '<div id="' + id + '"></div>';
	this._initilaize(parentDivId);
}

Userslist.prototype = {
	_initilaize : function(parentDivId){
		$('#' + parentDivId).append(this.userslist);
	},
	get : function(id){
		var data = null;
		for(index in this.usersData){
			if(this.usersData[index].id == id){
				data = this.usersData[index];
				break;
			}
		}
		return data;
	},
	append : function(user, follow){
		var unit = this._createTweetUnit(
							  user,
							  follow
		);
		$("#" + this.id).append(unit);
		this.usersData.push(user);
		this.count++;
	},
	appendNextTweet : function(){
		var unit = '';
		unit += '<div class="tweet_unit" data-theme="a" data-content-theme="a">';
		unit += '次を見る';
		unit += '</div>';
		$("#" + this.id).append(unit);
	},
	insert : function(index, data){
		if(tweet_unit != null){
			//$("#" + this.id + " div:last").append(tweet_unit);
			this.count++;
		}
	},
	_createTweetUnit : function(user, follow){
		var unit = '';
		unit += '<div user-id="' + user.id + '" class="tweet_unit" data-theme="a" data-content-theme="a">';
		unit += '<img src="' + user.profile_image_url + '">';
			unit += '<div class="right_tweet_area">';
				unit += '<div class="username">' + user.screen_name + '</div>';
				if(!follow){
					unit += '<button class="follow-button">フォローする</button>';
				}else{
					unit += '<button class="unfollow-button">フォロー解除</button>';
				}
				if(user.description != null){
					unit += '<div class="descreption">' + user.description  + '</div>';
				}else{
					unit += '<div class="descreption">' + "" + '</div>';
				}
				unit += '<div style="clear:both;"></div>';
			unit += '</div>';
		unit += '</div>';
		return unit;
	}
}